<!DESCRIPTION>I get annoyed when I'm trying to fill in a form and I have to scroll left or right to see what I've typed. This little script puts an end to that. <!/DESCRIPTION>
<!CATEGORY>Forms<!/CATEGORY>
<!SCRIPT>
<!-- START OF SCRIPT -->
<!-- HOW TO INSTALL TEXTBOX EXPANDER:
1. Copy code into the HEAD section of document
2. Put last coding into the BODY section of document -->
<!-- STEP ONE: Add code into HEAD section of document -->
<HEAD>
<!-- Original: Michael P. Hemmes (trueluck3@hotmail.com ) -->
<!-- Web Site: TextBox Expander -->
<script>
// The following script was written by: Michael P. Hemmes (trueluck3@hotmail.com)
// This script is freeware. You may use it, change it, add to it.
// I don't even care if you give me credit or not (I do, however, appreciate credit)
// However, DO NOT change this script and leave my name credited to the changed script.
function boxexpand()
{
// Code to make the script easier to use //
boxValue=document.all.thebox.value.length
boxSize=document.all.thebox.size
minNum=20 // Set this to the MINIMUM size you want your box to be.
maxNum=100 // Set this to the MAXIMUM size you want your box to be.
// Starts the main portion of the script //
if (boxValue > maxNum)
{
}
else
{
if (boxValue > minNum)
{
document.all.thebox.size = boxValue
}
else if (boxValue < minNum || boxValue != minNum)
{
document.all.thebox.size = minNum
}
}
}
// End of script //
</script>
</HEAD>
<!-- STEP TWO: Add code into BODY section of document -->
<BODY>
<!-- Original: Michael P. Hemmes (trueluck3@hotmail.com ) -->